package bean;

public class Book {
    private String id;  //ISBN
    private String name;
    private String type;//分类
    private String author;
    private String publisher;
    private Double price;
    private String book_abstract; //对应数据库字段abstract
    private String status;
    private String mark;

    public Book(){

    }
    public Book(String id){
        this.id=id;
    }

    public Book(String id,String name,String type,String author,String publisher,Double price,String book_abstract,String status,String mark){
        this.id = id;
        this.name = name;
        this.type = type;
        this.author = author;
        this.publisher = publisher;
        this.price = price;
        this.book_abstract = book_abstract;
        this.status = status;
        this.mark = mark;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getBook_abstract() {
        return book_abstract;
    }

    public void setBook_abstract(String book_abstract) {
        this.book_abstract = book_abstract;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", author='" + author + '\'' +
                ", publisher='" + publisher + '\'' +
                ", price=" + price +
                ", book_abstract='" + book_abstract + '\'' +
                ", status='" + status + '\'' +
                ", mark='" + mark + '\'' +
                '}';
    }
}
